package com.ruoyi.web.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.List;

/**
 * 疾病管理对象 new_disease
 *
 * @author drx
 * @date 2024-02-29
 */
@ApiModel("疾病管理")
public class DiseaseNew extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    @ApiModelProperty("主键")
    private Long id;

    /** 疾病名称 */
    @Excel(name = "疾病名称")
    @ApiModelProperty("疾病名称")
    private String name;

    /** 英文名称 */
    @Excel(name = "英文名称")
    @ApiModelProperty("英文名称")
    private String nameEn;

    /** 父级id */
    @Excel(name = "父级id")
    @ApiModelProperty("父级id")
    private Long pid;


    /** 排序 */
    @Excel(name = "排序")
    @ApiModelProperty("排序")
    private Long sortid;

    /** 是否删除（0否1是） */
    @Excel(name = "是否删除", readConverterExp = "0=否1是")
    @ApiModelProperty("是否删除（0否1是）")
    private String isDel;

    /** 药品标题 */
    @Excel(name = "药品标题")
    @ApiModelProperty("药品标题")
    private String drugT;

    /** 药品描述 */
    @Excel(name = "药品描述")
    @ApiModelProperty("药品描述")
    private String drugD;

    /** 药品关键词 */
    @Excel(name = "药品关键词")
    @ApiModelProperty("药品关键词")
    private String drugK;

    /** 药品疾病说明 */
    @Excel(name = "药品疾病说明")
    @ApiModelProperty("药品疾病说明")
    private String drugDescribe;

    /** 临床疾病说明 */
    @Excel(name = "临床疾病说明")
    @ApiModelProperty("临床疾病说明")
    private String lcDescribe;

    private List<DiseaseNew> diseaseList;
    private String  parentName;

    /** 药品疾病靶点集合 */
    private List<DiseaseTarget> diseaseTarget;

    public List<DiseaseTarget> getDiseaseTarget() {
        return diseaseTarget;
    }

    public void setDiseaseTarget(List<DiseaseTarget> diseaseTarget) {
        this.diseaseTarget = diseaseTarget;
    }

    public String getParentName() {
        return parentName;
    }

    public void setParentName(String parentName) {
        this.parentName = parentName;
    }

    public List<DiseaseNew> getDiseaseList() {
        return diseaseList;
    }

    public void setDiseaseList(List<DiseaseNew> diseaseList) {
        this.diseaseList = diseaseList;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }
    public void setPid(Long pid)
    {
        this.pid = pid;
    }

    public Long getPid()
    {
        return pid;
    }

    public void setSortid(Long sortid)
    {
        this.sortid = sortid;
    }

    public Long getSortid()
    {
        return sortid;
    }
    public void setIsDel(String isDel)
    {
        this.isDel = isDel;
    }

    public String getIsDel()
    {
        return isDel;
    }
    public void setDrugT(String drugT)
    {
        this.drugT = drugT;
    }

    public String getDrugT()
    {
        return drugT;
    }
    public void setDrugD(String drugD)
    {
        this.drugD = drugD;
    }

    public String getDrugD()
    {
        return drugD;
    }
    public void setDrugK(String drugK)
    {
        this.drugK = drugK;
    }
    public String getDrugK()
    {
        return drugK;
    }
    public void setDrugDescribe(String drugDescribe)
    {
        this.drugDescribe = drugDescribe;
    }

    public String getDrugDescribe()
    {
        return drugDescribe;
    }

    public void setLcDescribe(String lcDescribe)
    {
        this.lcDescribe = lcDescribe;
    }

    public String getLcDescribe()
    {
        return lcDescribe;
    }

    public String getNameEn() {
        return nameEn;
    }

    public void setNameEn(String nameEn) {
        this.nameEn = nameEn;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("name", getName())
                .append("createTime", getCreateTime())
                .append("pid", getPid())
                .append("sortid", getSortid())
                .append("isDel", getIsDel())
                .append("updateTime", getUpdateTime())
                .append("updateBy", getUpdateBy())
                .append("drugT", getDrugT())
                .append("drugD", getDrugD())
                .append("drugK", getDrugK())
                .append("drugDescribe", getDrugDescribe())
                .append("lcDescribe", getLcDescribe())
                .toString();
    }
}
